<?php
/**
 * Created by PhpStorm.
 * User: Antique
 * Date: 2021/12/10
 * Time: 下午 09:31
 */

namespace test\primary;
//include "sql_action.php";

class set_session
{
    public function set_session($md5, $username, $pwd,$time)
    {
        session_start();
        $_SESSION[$md5] = [
            'username' => $username,
            'pwd' => $pwd,
            'life'=>$time
        ];
    }

    public function select_session($md5)
    {
        session_start();
        $arr = $_SESSION[$md5];
        return $arr;
    }

    public function save_session()
    {

    }
}